package com.wcw.entity;

import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("USER")
public class User {
    @TableId
    private Long id;
    @TableField(value = "name", condition = SqlCondition.LIKE)
    private String name;
    @TableField(condition = "%s&lt;#{%s}")
    private Integer age;
    private String email;
    private Long managerId;
    private LocalDateTime createTime;
    @TableField(exist = false)
    private String remark;
//    private transient String remark;
//    private static String remark;
//
//    public static String getRemark() {
//        return remark;
//    }
//
//    public static void setRemark(String remark) {
//        User.remark = remark;
//    }
}
